@ECHO OFF
IF NOT EXIST "..\Scintilla\bin\Release\SciLexer.dll" (
	ECHO Scintilla not compiled.
	PAUSE
) ELSE IF NOT EXIST "bin\Release\SciTE.exe" (
	ECHO SciTE not compiled.
	PAUSE
) ELSE (
	IF EXIST "wscite" RD /S /Q wscite
	MD wscite\Doc
	COPY license.txt wscite > nul
	COPY bin\Release\SciTE.exe wscite > nul
	COPY ..\Scintilla\bin\Release\SciLexer.dll wscite > nul
	COPY src\*.properties wscite > nul
	COPY src\lsl.api wscite > nul
	COPY win32\sl-hand.ico wscite > nul
	COPY lua\COPYRIGHT wscite\luaCOPYRIGHT > nul
	DEL /F /Q wscite\Embedded.properties
	COPY doc\*.html wscite\Doc > nul
	COPY doc\*.png wscite\Doc > nul
	COPY doc\*.jpg wscite\Doc > nul
	COPY doc\*.1 wscite\Doc > nul
)